<?php

namespace App\Constants;

class RedisKey
{
    const TEST_USER_TOKEN = 'user:1000_0001_1_%s';    //用户token %s=用户id

    const SPIDER_CARRIER_DATA = 'spider:1000_0002_1_%d';    //运营商数据 %s=用户id
    const SPIDER_ZHIMA_DATA = 'spider:1000_0002_2_%d';    //芝麻信用数据 %s=用户id

    const RISK_COMMIT_LOCK = 'risk_commit:1000_0003_1_%d';   //风控提交锁

    const IMG_CODE = 'img:code_%d'; //图形验证码计算结果  %d = 手机号

    const VERIFY_CODE_ERROR = 'verify:code_error_%d'; //记录填写验证码 %d = 手机号

    const SEND_CODE_TIMES = 'send:code_times_%d'; // h5记录发送验证码次数，用于第二次弹出图形验证码

    const APP_UPDATE_INFO = 'app_update_info'; //app更新信息

    const BANK_ICON_LIST = 'bank_icon_list'; //银行卡图标列表

    const USER_FOLLOW = 'user-follow';

    const BANK_CARD_APPLY = 'bank:apply_%d'; // 记录用户申请绑卡的卡号

    //设置
    const SETTING_HOME_IMAGE = 'setting_home_image';//轮播图的缓存键值

    const SETTING_CONFIG = 'setting_config';//设置信息

    const SETTING_HOME_INSURANCE = 'setting_home_insurance';

    const SETTING_DOCUMENT = 'setting_document';

    const SETTING_LOAN = 'setting_loan';

    const SETTING_HOME_BANNER_IMAGE = 'setting_home_banner_image'; //首页扒窗图


    //---------------------记录银行卡请求数据-------------------//
    const BANK_CARD_REQUEST_DATA = 'bank_card_request_data';

    const BANK_CARD_CHANGE_REQUEST_DATA = 'bank_card_change_request_data_%s';
    //---------------------记录授信申请请求数据-------------------//
    const USER_LOAN_REQUEST_DATA = 'user_loan_request_data';

    const LOAN_APPLY_LISTENER_KEY = 'user_loan_request_listener_%s';//授信申请消费锁 %s=授信id
}